package cn.iocoder.yudao.module.spot.controller.admin;

import cn.iocoder.yudao.framework.common.pojo.CommonResult;
import cn.iocoder.yudao.module.spot.service.CallService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

import static cn.iocoder.yudao.framework.common.pojo.CommonResult.success;

@Api(tags = "A管理后台 - Call")
@RestController
@RequestMapping("/call")
@Validated
public class CallController {
    @Resource
    private CallService callService;

    @GetMapping("/call")
    @ApiOperation("调用存储过程")
    public CommonResult<String> doCall(){
        callService.call();
        return success("调用成功");
    }
}
